home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Adobe Graphics & Publishing SDK 1996 December
/
Adobe Graphics & Publishing SDK 1996 December.iso
/
mac
/
PageMaker 6.5 SDK Mac
/
SourceCode
/
PageMakerClassLibrary
/
Commands
/
PImport.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-08-15
|
1KB
|
60 lines
/*
*--- PImport.cpp ---------------------------------------------------------
* Copyright (c) 1995-96 Adobe Systems Incorporated. All rights reserved.
* Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
*
* Description: For notes about this class, refer to the
* PCL documentation file PImport.html
*-------------------------------------------------------------------------
*/
#include "PImport.h"
#include "PRequestBuf.h"
#include "PCommand.h"
PImport::PImport
( const char * fFilename,
short cAsWhat,
short bRetain,
short bConvert,
short bTags,
short bRetainCrop )
{
PRequestBuf request(strlen(fFilename) + 20);
request << fFilename
<< cAsWhat
<< bRetain
<< bConvert
<< bTags
<< bRetainCrop
<< (short) 0; // no filters
PCommand command(pm_import, request);
}
PImport::PImport
( const char * fFilename,
short cAsWhat,
short bRetain,
short bConvert,
short bTags,
short bRetainCrop,
PRequestBuf& filters )
{
PRequestBuf request(strlen(fFilename) + filters.Size() + 50);
request << fFilename
<< cAsWhat
<< bRetain
<< bConvert
<< bTags
<< bRetainCrop
<< filters;
PCommand command(pm_import, request);
}
// end of PImport.cpp